Skip to content

feat(dock): show autostart badge on folder items - #1884

Merged
wjyrich merged 1 commit into
linuxdeepin:masterfrom
wjyrich:fix-bug-384483
Nov 26, 2026
Merged

wjyrich merged 1 commit into
linuxdeepin:masterfrom
wjyrich:fix-bug-384483

Conversation

@wjyrich

@wjyrich wjyrich commented Nov 26, 2026 •

Copy link
Copy Markdown
Contributor
  1. Add autoStart field to folderInfo contents built from the app model
  2. Render an emblem_autostart badge on folder popup items when enabled
  3. Add the emblem_autostart DCI icon resource
  4. Update folder residence doc to describe the autoStart field

Log: Folder popup items now display an autostart badge
Influence: Users can spot startup apps inside app folders at a glance

feat(dock): 文件夹子项显示自启动角标

  1. folderInfo 返回的子项新增 autoStart 字段,取自应用模型
  2. 文件夹弹窗中为自启动应用叠加 emblem_autostart 角标
  3. 新增 emblem_autostart DCI 图标资源
  4. 更新文件夹驻留文档以说明 autoStart 字段

Log: 文件夹弹窗子项现在显示自启动角标
Influence: 用户可一眼识别文件夹内的自启动应用
PMS: BUG-384483

Summary by Sourcery

Show users which applications in dock folders start automatically.

New Features:

  • Display an autostart badge on folder popup items for applications enabled to launch automatically.

Enhancements:

  • Expose each folder item's autostart state through folder information and document the updated interface.

Documentation:

  • Document the folder item autoStart field and its refresh behavior.

Chores:

  • Add the emblem_autostart icon resource.

@sourcery-ai

sourcery-ai Bot commented Nov 26, 2026

Copy link
Copy Markdown

Sorry @wjyrich, you've used your own review budget of 250,000 diff characters for the last 7 days.

You can request another review in 2 hours and 57 minutes by commenting @sourcery-ai review. Upgrade to get a review now.

@sourcery-ai

sourcery-ai Bot commented Nov 26, 2026 •

Copy link
Copy Markdown

Reviewer's Guide

API

Expose each folder item's autostart state through folderInfo so consumers can identify applications configured to start automatically.

  • applets/dde-apps/appgroupmanager.cpp L494-495

UI

Display the autostart emblem on folder popup items whose autoStart field is enabled, and provide the emblem icon resource.

  • panels/dock/taskmanager/package/FolderPopup.qml L163-172
  • panels/dock/taskmanager/package/icons/emblem_autostart.dci

Documentation

Document the updated folderInfo contents and how autostart status changes refresh the badge.

  • docs/launcher-folder-residence.md L15

Tips and commands

Interacting with Sourcery

  • Trigger a new review: Comment @sourcery-ai review on the pull request.
  • Continue discussions: Reply directly to Sourcery's review comments.
  • Generate a GitHub issue from a review comment: Ask Sourcery to create an
    issue from a review comment by replying to it. You can also reply to a
    review comment with @sourcery-ai issue to create an issue from it.
  • Generate a pull request title: Write @sourcery-ai anywhere in the pull
    request title to generate a title at any time. You can also comment
    @sourcery-ai title on the pull request to (re-)generate the title at any time.
  • Generate a pull request summary: Write @sourcery-ai summary anywhere in
    the pull request body to generate a PR summary at any time exactly where you
    want it. You can also comment @sourcery-ai summary on the pull request to
    (re-)generate the summary at any time.
  • Generate reviewer's guide: Comment @sourcery-ai guide on the pull
    request to (re-)generate the reviewer's guide at any time.
  • Resolve all Sourcery comments: Comment @sourcery-ai resolve on the
    pull request to resolve all Sourcery comments. Useful if you've already
    addressed all the comments and don't want to see them anymore.
  • Dismiss all Sourcery reviews: Comment @sourcery-ai dismiss on the pull
    request to dismiss all existing Sourcery reviews. Especially useful if you
    want to start fresh with a new review - don't forget to comment
    @sourcery-ai review to trigger a new review!

Customizing Your Experience

Access your dashboard to:

  • Enable or disable review features such as the Sourcery-generated pull request
    summary, the reviewer's guide, and others.
  • Change the review language.
  • Add, remove or edit custom review instructions.
  • Adjust other review settings.

Getting Help

@deepin-ci-robot

deepin-ci-robot commented Nov 26, 2026 •

Copy link
Copy Markdown

⚠️ OBS CI 构建警告日志 (Commit: acd2117a)

提示:以下为 OBS CI 构建中 Lintian 检测到的警告信息,默认折叠,点击展开查看详情。完整日志请参阅对应构建状态链接。

deepin_develop / aarch64 (Lintian 警告: 15 条)
[  719s] W: dde-shell: desktop-command-not-in-package bin/false [usr/share/applications/org.deepin.dde-shell.desktop]
[  719s] N: 
[  719s] N:   The desktop entry specifies a Command that does not match any of the
[  719s] N:   executables shipped in the package.
[  719s] N:   
[  719s] N:   This condition is often caused by a typo, or the desktop file was not
[  719s] N:   updated after the installed path of the executable was modified.
[  719s] N:   
[  719s] N:   Packages should ship executables that are used as commands in desktop
[  719s] N:   files.
[  719s] N: 
[  719s] N:   Visibility: warning
[  719s] N:   Show-Always: no
[  719s] N:   Check: menu-format
[  719s] N: 
[  719s] N:
[  719s] W: dde-shell: link-to-shared-library-in-wrong-package usr/lib/aarch64-linux-gnu/libds-notification-shared.so.2.0.61 [usr/lib/aarch64-linux-gnu/libds-notification-shared.so]
[  719s] N: 
[  719s] N:   Although this package is not a "-dev" package, it installs a
[  719s] N:   "libsomething.so" symbolic link referencing the corresponding shared
[  719s] N:   library. When the link doesn't include the version number, it is used by
[  719s] N:   the linker when other programs are built against this shared library.
[  719s] N:   
[  719s] N:   Shared libraries are supposed to place such symbolic links in their
[  719s] N:   respective "-dev" packages, so it is a bug to include it with the main
[  719s] N:   library package.
[  719s] N:   
[  719s] N:   However, if this is a small package which includes the runtime and the
[  719s] N:   development libraries, this is not a bug. In the latter case, please
[  719s] N:   override this warning.
[  719s] N: 
[  719s] N:   Please refer to Development files (Section 8.4) in the Debian Policy
[  719s] N:   Manual for details.
[  719s] N: 
[  719s] N:   Visibility: warning
[  719s] N:   Show-Always: no
[  719s] N:   Check: libraries/shared/links
[  719s] N:   Renamed from: non-dev-pkg-with-shlib-symlink
[  719s] N: 
[  719s] N:
[  719s] W: dde-shell: no-manual-page [usr/bin/dde-shell]
[  719s] N: 
[  719s] N:   Each binary in /usr/bin, /usr/sbin, /bin, /sbin or /usr/games should have
[  719s] N:   a manual page
[  719s] N:   
[  719s] N:   Note that though the man program has the capability to check for several
[  719s] N:   program names in the NAMES section, each of these programs should have its
[  719s] N:   own manual page (a symbolic link to the appropriate manual page is
[  719s] N:   sufficient) because other manual page viewers such as xman or tkman don't
[  719s] N:   support this.
[  719s] N:   
[  719s] N:   If the name of the manual page differs from the binary by case, man may be
[  719s] N:   able to find it anyway; however, it is still best practice to match the
[  719s] N:   exact capitalization of the executable in the manual page.
[  719s] N:   
[  719s] N:   If the manual pages are provided by another package on which this package
[  719s] N:   depends, Lintian may not be able to determine that manual pages are
[  719s] N:   available. In this case, after confirming that all binaries do have manual
[  719s] N:   pages after this package and its dependencies are installed, please add a
[  719s] N:   Lintian override.
[  719s] N: 
[  719s] N:   Please refer to Manual pages (Section 12.1) in the Debian Policy Manual
[  719s] N:   for details.
[  719s] N: 
[  719s] N:   Visibility: warning
[  719s] N:   Show-Always: no
[  719s] N:   Check: documentation/manual
[  719s] N:   Renamed from: binary-without-manpage
[  719s] N: 
[  719s] N:
[  719s] W: dde-shell source: no-nmu-in-changelog [debian/changelog:1]
[  719s] N: 
[  719s] N:   When you NMU a package, that fact should be mentioned on the first line in
[  719s] N:   the changelog entry. Use the words "NMU" or "Non-maintainer upload" (case
[  719s] N:   insensitive).
[  719s] N:   
[  719s] N:   Maybe you didn't intend this upload to be a NMU, in that case, please
[  719s] N:   double-check that the most recent entry in the changelog is byte-for-byte
[  719s] N:   identical to the maintainer or one of the uploaders. If this is a local
[  719s] N:   package (not intended for Debian), you can suppress this warning by
[  719s] N:   putting "local" in the version number or "local package" on the first line
[  719s] N:   of the changelog entry.
[  719s] N: 
[  719s] N:   Please refer to Using the DELAYED/ queue (Section 5.11.3) in the Debian
[  719s] N:   Developer's Reference for details.
[  719s] N: 
[  719s] N:   Visibility: warning
[  719s] N:   Show-Always: no
[  719s] N:   Check: nmu
[  719s] N:   Renamed from: changelog-should-mention-nmu
[  719s] N: 
[  719s] N:
[  719s] W: dde-shell: package-name-doesnt-match-sonames libds-notification-shared2
[  719s] N: 
[  719s] N:   The package name of a library package should usually reflect the soname of
[  719s] N:   the included library. The package name can determined from the library
[  719s] N:   file name with the following code snippet:
[  719s] N:   
[  719s] N:    $ objdump -p /path/to/libfoo-bar.so.1.2.3 | sed -n -e's/^[[:space:]]*SONAME[[:space:]]*//p' | \
[  719s] N:        sed -r -e's/([0-9])\.so\./\1-/; s/\.so(\.|$)//; y/_/-/; s/(.*)/\L&/'
[  719s] N: 
[  719s] N:   Visibility: warning
[  719s] N:   Show-Always: no
[  719s] N:   Check: libraries/shared/soname
[  719s] N: 
[  719s] N:
[  719s] W: libdde-shell: package-name-doesnt-match-sonames libdde-shell1
[  719s] N:
[  719s] W: libdde-shell-dock: package-name-doesnt-match-sonames libdde-shell-dock1
[  719s] N:
[  719s] W: dde-shell source: source-nmu-has-incorrect-version-number 2.0.61+u052 [debian/changelog:1]
[  719s] N: 
[  719s] N:   A source NMU should have a Debian revision of "-x.x" (or "+nmuX" for a
[  719s] N:   native package). This is to prevent stealing version numbers from the
[  719s] N:   maintainer.
[  719s] N:   
[  719s] N:   Maybe you didn't intend this upload to be a NMU, in that case, please
[  719s] N:   double-check that the most recent entry in the changelog is byte-for-byte
[  719s] N:   identical to the maintainer or one of the uploaders. If this is a local
[  719s] N:   package (not intended for Debian), you can suppress this warning by
[  719s] N:   putting "local" in the version number or "local package" on the first line
[  719s] N:   of the changelog entry.
[  719s] N: 
[  719s] N:   Please refer to NMUs and debian/changelog (Section 5.11.2) in the Debian
[  719s] N:   Developer's Reference for details.
[  719s] N: 
[  719s] N:   Visibility: warning
[  719s] N:   Show-Always: no
[  719s] N:   Check: nmu
[  719s] N: 
[  719s] N:
[  719s] W: dde-shell: unknown-section DDE
[  719s] N: 
[  719s] N:   The "Section:" field in this package's control file is not one of the
[  719s] N:   sections in use on the ftp archive. Valid sections are currently admin,
[  719s] N:   comm, cli-mono, database, debug, devel, doc, editors, electronics,
[  719s] N:   embedded, fonts, games, gnome, gnu-r, gnustep, graphics, hamradio,
[  719s] N:   haskell, httpd, interpreters, java, javascript, kde, libdevel, libs, lisp,
[  719s] N:   localization, kernel, mail, math, misc, net, news, ocaml, oldlibs,
[  719s] N:   otherosfs, perl, php, python, ruby, rust, science, shells, sound, tex,
[  719s] N:   text, utils, vcs, video, web, x11, xfce, zope.
[  719s] N:   
[  719s] N:   The section name should be preceded by either "contrib/", "non-free/" or
[  719s] N:   "non-free-firmware/" if the package is in the according archive area.
[  719s] N: 
[  719s] N:   Please refer to Sections (Section 2.4) in the Debian Policy Manual for
[  719s] N:   details.
[  719s] N: 
[  719s] N:   Visibility: warning
[  719s] N:   Show-Always: no
[  719s] N:   Check: fields/section
[  719s] N: 
[  719s] N:
[  719s] W: dde-shell-example: unknown-section DDE
[  719s] N:
[  719s] W: libdde-shell: unknown-section DDE
[  719s] N:
[  719s] W: libdde-shell-dev: unknown-section DDE
[  719s] N:
[  719s] W: libdde-shell-dock: unknown-section DDE
[  719s] N:
[  719s] W: libdde-shell-dock-dev: unknown-section DDE
[  720s] Warning: mkbaselibs missing in build root, skipping baselibs
deepin_develop / x86_64 (Lintian 警告: 15 条)
[  390s] W: dde-shell: desktop-command-not-in-package bin/false [usr/share/applications/org.deepin.dde-shell.desktop]
[  390s] N: 
[  390s] N:   The desktop entry specifies a Command that does not match any of the
[  390s] N:   executables shipped in the package.
[  390s] N:   
[  390s] N:   This condition is often caused by a typo, or the desktop file was not
[  390s] N:   updated after the installed path of the executable was modified.
[  390s] N:   
[  390s] N:   Packages should ship executables that are used as commands in desktop
[  390s] N:   files.
[  390s] N: 
[  390s] N:   Visibility: warning
[  390s] N:   Show-Always: no
[  390s] N:   Check: menu-format
[  390s] N: 
[  390s] N:
[  390s] W: dde-shell: link-to-shared-library-in-wrong-package usr/lib/x86_64-linux-gnu/libds-notification-shared.so.2.0.61 [usr/lib/x86_64-linux-gnu/libds-notification-shared.so]
[  390s] N: 
[  390s] N:   Although this package is not a "-dev" package, it installs a
[  390s] N:   "libsomething.so" symbolic link referencing the corresponding shared
[  390s] N:   library. When the link doesn't include the version number, it is used by
[  390s] N:   the linker when other programs are built against this shared library.
[  390s] N:   
[  390s] N:   Shared libraries are supposed to place such symbolic links in their
[  390s] N:   respective "-dev" packages, so it is a bug to include it with the main
[  390s] N:   library package.
[  390s] N:   
[  390s] N:   However, if this is a small package which includes the runtime and the
[  390s] N:   development libraries, this is not a bug. In the latter case, please
[  390s] N:   override this warning.
[  390s] N: 
[  390s] N:   Please refer to Development files (Section 8.4) in the Debian Policy
[  390s] N:   Manual for details.
[  390s] N: 
[  390s] N:   Visibility: warning
[  390s] N:   Show-Always: no
[  390s] N:   Check: libraries/shared/links
[  390s] N:   Renamed from: non-dev-pkg-with-shlib-symlink
[  390s] N: 
[  390s] N:
[  390s] W: dde-shell: no-manual-page [usr/bin/dde-shell]
[  390s] N: 
[  390s] N:   Each binary in /usr/bin, /usr/sbin, /bin, /sbin or /usr/games should have
[  390s] N:   a manual page
[  390s] N:   
[  390s] N:   Note that though the man program has the capability to check for several
[  390s] N:   program names in the NAMES section, each of these programs should have its
[  390s] N:   own manual page (a symbolic link to the appropriate manual page is
[  390s] N:   sufficient) because other manual page viewers such as xman or tkman don't
[  390s] N:   support this.
[  390s] N:   
[  390s] N:   If the name of the manual page differs from the binary by case, man may be
[  390s] N:   able to find it anyway; however, it is still best practice to match the
[  390s] N:   exact capitalization of the executable in the manual page.
[  390s] N:   
[  390s] N:   If the manual pages are provided by another package on which this package
[  390s] N:   depends, Lintian may not be able to determine that manual pages are
[  390s] N:   available. In this case, after confirming that all binaries do have manual
[  390s] N:   pages after this package and its dependencies are installed, please add a
[  390s] N:   Lintian override.
[  390s] N: 
[  390s] N:   Please refer to Manual pages (Section 12.1) in the Debian Policy Manual
[  390s] N:   for details.
[  390s] N: 
[  390s] N:   Visibility: warning
[  390s] N:   Show-Always: no
[  390s] N:   Check: documentation/manual
[  390s] N:   Renamed from: binary-without-manpage
[  390s] N: 
[  390s] N:
[  390s] W: dde-shell source: no-nmu-in-changelog [debian/changelog:1]
[  390s] N: 
[  390s] N:   When you NMU a package, that fact should be mentioned on the first line in
[  390s] N:   the changelog entry. Use the words "NMU" or "Non-maintainer upload" (case
[  390s] N:   insensitive).
[  390s] N:   
[  390s] N:   Maybe you didn't intend this upload to be a NMU, in that case, please
[  390s] N:   double-check that the most recent entry in the changelog is byte-for-byte
[  390s] N:   identical to the maintainer or one of the uploaders. If this is a local
[  390s] N:   package (not intended for Debian), you can suppress this warning by
[  390s] N:   putting "local" in the version number or "local package" on the first line
[  390s] N:   of the changelog entry.
[  390s] N: 
[  390s] N:   Please refer to Using the DELAYED/ queue (Section 5.11.3) in the Debian
[  390s] N:   Developer's Reference for details.
[  390s] N: 
[  390s] N:   Visibility: warning
[  390s] N:   Show-Always: no
[  390s] N:   Check: nmu
[  390s] N:   Renamed from: changelog-should-mention-nmu
[  390s] N: 
[  390s] N:
[  390s] W: dde-shell: package-name-doesnt-match-sonames libds-notification-shared2
[  390s] N: 
[  390s] N:   The package name of a library package should usually reflect the soname of
[  390s] N:   the included library. The package name can determined from the library
[  390s] N:   file name with the following code snippet:
[  390s] N:   
[  390s] N:    $ objdump -p /path/to/libfoo-bar.so.1.2.3 | sed -n -e's/^[[:space:]]*SONAME[[:space:]]*//p' | \
[  390s] N:        sed -r -e's/([0-9])\.so\./\1-/; s/\.so(\.|$)//; y/_/-/; s/(.*)/\L&/'
[  390s] N: 
[  390s] N:   Visibility: warning
[  390s] N:   Show-Always: no
[  390s] N:   Check: libraries/shared/soname
[  390s] N: 
[  390s] N:
[  390s] W: libdde-shell: package-name-doesnt-match-sonames libdde-shell1
[  390s] N:
[  390s] W: libdde-shell-dock: package-name-doesnt-match-sonames libdde-shell-dock1
[  390s] N:
[  390s] W: dde-shell source: source-nmu-has-incorrect-version-number 2.0.61+u052 [debian/changelog:1]
[  390s] N: 
[  390s] N:   A source NMU should have a Debian revision of "-x.x" (or "+nmuX" for a
[  390s] N:   native package). This is to prevent stealing version numbers from the
[  390s] N:   maintainer.
[  390s] N:   
[  390s] N:   Maybe you didn't intend this upload to be a NMU, in that case, please
[  390s] N:   double-check that the most recent entry in the changelog is byte-for-byte
[  390s] N:   identical to the maintainer or one of the uploaders. If this is a local
[  390s] N:   package (not intended for Debian), you can suppress this warning by
[  390s] N:   putting "local" in the version number or "local package" on the first line
[  390s] N:   of the changelog entry.
[  390s] N: 
[  390s] N:   Please refer to NMUs and debian/changelog (Section 5.11.2) in the Debian
[  390s] N:   Developer's Reference for details.
[  390s] N: 
[  390s] N:   Visibility: warning
[  390s] N:   Show-Always: no
[  390s] N:   Check: nmu
[  390s] N: 
[  390s] N:
[  390s] W: dde-shell: unknown-section DDE
[  390s] N: 
[  390s] N:   The "Section:" field in this package's control file is not one of the
[  390s] N:   sections in use on the ftp archive. Valid sections are currently admin,
[  390s] N:   comm, cli-mono, database, debug, devel, doc, editors, electronics,
[  390s] N:   embedded, fonts, games, gnome, gnu-r, gnustep, graphics, hamradio,
[  390s] N:   haskell, httpd, interpreters, java, javascript, kde, libdevel, libs, lisp,
[  390s] N:   localization, kernel, mail, math, misc, net, news, ocaml, oldlibs,
[  390s] N:   otherosfs, perl, php, python, ruby, rust, science, shells, sound, tex,
[  390s] N:   text, utils, vcs, video, web, x11, xfce, zope.
[  390s] N:   
[  390s] N:   The section name should be preceded by either "contrib/", "non-free/" or
[  390s] N:   "non-free-firmware/" if the package is in the according archive area.
[  390s] N: 
[  390s] N:   Please refer to Sections (Section 2.4) in the Debian Policy Manual for
[  390s] N:   details.
[  390s] N: 
[  390s] N:   Visibility: warning
[  390s] N:   Show-Always: no
[  390s] N:   Check: fields/section
[  390s] N: 
[  390s] N:
[  390s] W: dde-shell-example: unknown-section DDE
[  390s] N:
[  390s] W: libdde-shell: unknown-section DDE
[  390s] N:
[  390s] W: libdde-shell-dev: unknown-section DDE
[  390s] N:
[  390s] W: libdde-shell-dock: unknown-section DDE
[  390s] N:
[  390s] W: libdde-shell-dock-dev: unknown-section DDE
[  390s] Warning: mkbaselibs missing in build root, skipping baselibs

1. Add autoStart field to folderInfo contents built from the app model
2. Render an emblem_autostart badge on folder popup items when enabled
3. Add the emblem_autostart DCI icon resource
4. Update folder residence doc to describe the autoStart field

Log: Folder popup items now display an autostart badge
Influence: Users can spot startup apps inside app folders at a glance

feat(dock): 文件夹子项显示自启动角标

1. folderInfo 返回的子项新增 autoStart 字段,取自应用模型
2. 文件夹弹窗中为自启动应用叠加 emblem_autostart 角标
3. 新增 emblem_autostart DCI 图标资源
4. 更新文件夹驻留文档以说明 autoStart 字段

Log: 文件夹弹窗子项现在显示自启动角标
Influence: 用户可一眼识别文件夹内的自启动应用
PMS: BUG-384483
@deepin-ci-robot

Copy link
Copy Markdown

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by: BLumia, wjyrich

The full list of commands accepted by this bot can be found here.

Details Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@wjyrich
wjyrich merged commit 8e54054 into linuxdeepin:master Nov 26, 2026
12 of 13 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants